import request from "../../utils/request";

export function userLogin(data) {
    return request.post(
        {
            url: "/user/wxLogin",
            data: data
        });
}

export function updateUserInfo(data) {
    return request.put(
        {
            url: "/user/updateUserInfo",
            data: data
        });
}

export function queryUserInfo() {
    return request.get({
        url: "/user/info"
    })
}

export function questToService(msg) {
    return request.post({
        url: `/user/service`,
        data: {msg: msg}
    })
}